package com.cskaoyan.service.wx_coupon;

import com.cskaoyan.bean.wx_coupon.WxCouponUser;
import com.cskaoyan.mapper.wx_coupon.WxCouponMapper;
import com.cskaoyan.mapper.wx_coupon.WxCouponUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @Description:
 * @author: Jason 805636901@qq.com
 * @create: 2021-10-23-10:47 AM
 */
@Service
public class WxCouponUserServiceImpl implements WxCouponUserService {
    @Autowired
    WxCouponMapper wxcouponMapper;
    @Autowired
    WxCouponUserMapper wxCouponUserMapper;

    @Override
    public void add(WxCouponUser couponUser) {
        couponUser.setAddTime(new Date());
        couponUser.setUpdateTime(new Date());
        wxCouponUserMapper.insertSelective(couponUser);
    }
}
